﻿using Microsoft.AspNetCore.Mvc;

namespace Medlcalcare.MVC.Controllers
{
    public class HeaEncyclopeController : Controller
    {

        /// <summary>
        ///健康百科
        /// </summary>
        /// <returns></returns>
        /// 

        public IConfiguration Configuration { get; }

        public HeaEncyclopeController(IConfiguration configuration)
        {
            Configuration = configuration;
        }

        /// <summary>
        /// 百科添加
        /// </summary>
        /// <returns></returns>
        public IActionResult AddHeaEncyclope()
        {
            ViewBag.BaseUrl = Configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }

        /// <summary>
        /// 百科显示
        /// </summary>
        /// <returns></returns>
        public IActionResult GetHeaEncyclope()
        {
            ViewBag.BaseUrl = Configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
    }
}
